<template>
	<view class="container">
		<nav-top :title="navTitle" :type="navType" />
		<list-home :listData="listData" />
	</view>
</template>

<script setup>
	import {
		onLoad
	} from "@dcloudio/uni-app"
	import request from "@/Api/request.js"
	import {
		reactive
	} from "vue";
	const navTitle = "我的收藏"
	const navType = "commen"
	let listData = reactive([])
	onLoad(() => {
		request({
			url: "/shop/star",
			method: "GET"
		}).then((res) => {
			for (let item of res) {
				listData.push(item)
			}
			console.log(listData);
		})
	})
</script>

<style lang="scss" scoped>

</style>